<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/templates/template.xhtml">
    
    <ui:define name="sidebar">
        
    </ui:define>
    
    <ui:define name="content">
        <p:panelGrid columns="2" styleClass="centered">
            <f:facet name="header">
                <h:outputText value="Autentique-se" />
            </f:facet>
            <h:outputLabel value="Login:" />
            <p:inputText id="username" value="#{autenticacaoCtrl.username}" />
            
            <h:outputLabel value="Senha: " />
            <p:password id="password" value="#{autenticacaoCtrl.password}" />
            
            <f:facet name="footer">
                <p:commandButton value="Entrar" icon="ui-icon-key" action="#{autenticacaoCtrl.login()}" ajax="false" />
            </f:facet>
        </p:panelGrid>
    </ui:define>
    
    <ui:define name="dialogos">
        
    </ui:define>
</ui:composition>
